package com.example.library.util;

import android.content.Context;
import android.content.SharedPreferences;

public class BlacklistReasonManager {
    private static final String PREF_NAME = "blacklist_reasons";

    public static void setReason(Context context, int userId, String reason) {
        SharedPreferences sp = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);
        sp.edit().putString(String.valueOf(userId), reason).apply();
    }

    public static String getReason(Context context, int userId) {
        SharedPreferences sp = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);
        return sp.getString(String.valueOf(userId), "");
    }
} 